package com.gc.cscott.domain;

import com.google.common.base.Preconditions;
import java.io.File;

/**
 *
 * @author root
 */
public class Solution implements Comparable<Solution> {
    int taskNumber;

    File solutionBase;

    public Solution(File solutionBase, int taskNumber) {
        Preconditions.checkArgument(solutionBase.isDirectory());
        Preconditions.checkArgument(taskNumber>0);
        this.solutionBase = solutionBase;
        this.taskNumber = taskNumber;
    }

    public File getSolutionBase() {
        return solutionBase;
    }

    public int getTaskNumber() {
        return taskNumber;
    }

    public int compareTo(Solution other) {
        return Integer.valueOf(this.taskNumber).compareTo(Integer.valueOf(other.taskNumber));
    }
}
